package roborally.Conditions;
import roborally.*;

/**
 * A class of True-conditions for playing the roborally game, involving a static final True condition.
 * 
 * @version  2.90
 * @author   Michiel Ruelens & Dieter Naten
 */
public class True extends Condition {
	
	private static final True t = new True();
	
	/**
	 * Creates a new True condition. This condition always returns true.
	 */
	public True(){
		this.setStringForm("True");
	}

	/**
	 * Validating this condition will always return true, for any placeable.
	 */
	@Override
	public boolean validate(Placeable placeable) {
		return true;
	}
	
	/**
	 * There is no need to have duplicate objects of this class, so only 1 is being created and always returned by this method.
	 */
	@Override
	public True getInstance() {
		return this.t;
	}

}
